From: Glenn Morris Date: Tue, 12 Oct 2010 08:05:28 +0000 (-0700) Subject: * make-dist: Replace grep with sed when determining $version. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~324^2~6111 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=0cba9d8da2d5ec9a231b479bf5592a13b34c2f1a;p=emacs.git * make-dist: Replace grep with sed when determining $version. --- diff --git a/make-dist b/make-dist index c713f8e1574..2a51b91241e 100755 --- a/make-dist +++ b/make-dist @@ -153,8 +153,7 @@ then fi ### Find out which version of Emacs this is. -version=`grep 'char emacs_version' src/emacs.c \ - | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'` +version=`sed -n '/char emacs_version/ s/^[^"]*"\([^"]*\)".*$/\1/p' src/emacs.c` if [ ! "${version}" ]; then echo "${progname}: can't find current Emacs version in \`./src/emacs.c'" >&2 exit 1